// ignore_for_file: constant_identifier_names

import 'package:flutter/material.dart';

String home = 'Home';

const AppName = "e车联";
const iOSAppStoreID = "6463350860";
const iOSVersionLookupURL = "https://itunes.apple.com/cn/lookup"; /// 查看 App 在 App Store 中的版本号
const iOSAppStoreURL = "https://itunes.apple.com/cn/app/$iOSAppStoreID"; /// 打开 App 在 App Store 中的详情页

const appVersionInfoPlatform = "Android";

const marketAndroid = "market://details?id=com.azr.bkm"; // 打开android端应用商店的uri
const xiaomiMarket = "mimarket://details?id=com.azr.bkm"; // 打开小米应用商店的uri
const huaweiMarket = "appmarket://details?id=com.azr.bkm"; // 打开华为应用商店的uri

const IS_FIRST_INSTALL = "isFirstInstall";
const USER_TOKEN = "kUserDefaultsKeyToken";
const kStoreChange = 'shop_change'; // 店铺切换
const kHomeRefresh = "kHomeRefresh"; // 通知首页刷新,事件通知key
const kUserInfo = 'kUserInfo'; // 用户资料
const kShopInfo = 'kShopInfo';    // 店铺资料

//服务协议
const agreementUrl = "https://echelianhtml.ygxpt.com/agreement/index.html";
//隐私政策
const privacyUrl = "https://echelianhtml.ygxpt.com/privacy/index.html";

// 屏幕宽高
double screenWidth(BuildContext context) => MediaQuery.of(context).size.width;
double screenHeight(BuildContext context) => MediaQuery.of(context).size.height;
double navigationH(BuildContext context) => MediaQuery.of(context).padding.top;
double tabBarH(BuildContext context) => MediaQuery.of(context).padding.bottom;

/*顶部安全区域远离高度*/
const TopSafeHeight = 44.0;
/*底部安全区域远离高度*/
const BottomSafeHeight = 34.0;
/*状态栏高度*/
const StatusBarHeight = 44.0;
/*导航栏高度*/
const NavBarHeight = 44 + TopSafeHeight;
/*TabBar高度*/
const TabBarHeight = 49.0 + BottomSafeHeight;
